<template>
  <van-overlay :show="show" :custom-style="{ background: 'rgba(0, 0, 0,.2)' }" z-index="999999999999999">
    <div class="mnode-laodinge">
      <div class="loader"></div>
    </div>
  </van-overlay>
</template>

<script setup>
import { ref, onMounted, onBeforeUnmount } from "vue";
const show = ref(true);
</script>

<style lang="less" scoped>
.mnode-laodinge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  .loader {
    width: 6rem;
    padding: 0.8rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #db4242;
    --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
  }
  @keyframes l3 {
    to {
      transform: rotate(1turn);
    }
  }
}
</style>
